//
//  UWTile.h
//  Urban Words
//
//  Created by Tim Brandin on 2011-12-05.
//  Copyright (c) 2011 Sypreme. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BoardPrefs.h"

@interface UWTile : UIButton {
    BOOL is_dragging;
    UIImage *normal;
    UIImage *highlighted;
    UIView *superview;
    UIView *scrollview;
    UILabel *letter;
    UILabel *whiteletter;
    UILabel *valueletter;
    UILabel *valuewhiteletter;
    float distance;
    int brick;
    int panelPos;
    BRICK_STATE brick_state;
    BOOL remove;
    
    @private CGPoint lastmove;
    @private NSTimer *timer;
}

@property (retain, nonatomic) UIView *superview;
@property (retain, nonatomic) UIView *scrollview;
@property float distance;
@property int brick;
@property int panelPos;
@property BOOL remove;
@property (retain, nonatomic) UILabel *letter;
@property BRICK_STATE brick_state;

- (id)initWithView:(UIView *)view scrollView:(UIView *)scrollView withChar:(NSString *)text;
- (void)highlight;

@end
